package com.kfm.wiki.service;

import com.github.pagehelper.Page;
import com.kfm.wiki.entity.Doc;
import com.kfm.wiki.entity.Doc;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kfm.wiki.util.PageReq;

import java.util.List;

/**
* @author 10854
* @description 针对表【doc】的数据库操作Service
* @createDate 2022-10-18 14:14:16
*/
public interface DocService extends IService<Doc> {

    Page<Doc> page(Doc doc, PageReq page);

    List<Doc> list(Doc doc);

    void increaseViewCount(Long id);

    void increaseVoteCount(Long id);

    void updateDocInfo();
}
